<div id="formulaire_rendev">
<h1> CREATION SONDAGE </h1>
<?php echo validation_errors(); ?>

<?php echo form_open('c_rendev'); ?>

		<h5>Libelle</h5>
		<input type="text" name="libelle" value="<?php echo set_value('libelle');?>" size="50" />
<?php if($this->session->userdata('champ')){
		echo "<h5>Nombre de creneaux</h5>
		<select name = 'creneaux'>
			<option value='1'>1</option>
			<option value='2'>2</option>
			<option value='3'>3</option>
			<option value='4'>4</option>
			<option value='5'>5</option>
			<option value='6'>6</option>
			<option value='7'>7</option>
		</select>";
	}
	else{
		echo "<br>".$_POST['creneaux'];
		for($i = 1; $i <= $_POST['creneaux']; $i++){
			echo "<h5>Creneau $i</h5>
			<h5>Date</h5>
			<input type='text' name='date' size='50' />
			<h5>Heure debut</h5>
			<input type='text' name='debut' size='50' />
			<h5>Heure fin</h5>
			<input type='text' name='fin' size='50' />";
		}
	}
?>
		<div><input type="submit" value="Ouverture" /></div>

		</form>
</div>
